import request from '@/utils/request'
// import store from '@/store'
// 登录
export const sysLogin = (data) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

// 获取用户信息
export const sysProfile = () => {
  return request({
    url: '/sys/profile',
    method: 'POST'
    // headers: {
    //   Authorization: `Bearer ${store.state.user.token}`
    // }
  })
}

// 获取员工基本信息
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
